﻿
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Web.Areas.Main.Controllers
{
    using ECommon.Utilities;
    using ENode.Commanding;

    public class HomeController : Controller
    {
        private ICommandService _commandService;

        public HomeController(ICommandService commandService)
        {
            _commandService = commandService;
        }

        //
        // GET: /Main/Home/

        public ActionResult Index()
        {

            return View();
        }

        public ActionResult Test()
        {
            _commandService.Send( new Commands.Accounts.RegisterNewAccountCommand(
                ObjectId.GenerateNewStringId(),
                "lcs",
                "pwd"
                ) );
            return Content("ok");
        }
    }
}
